package com.alibaba.citrus.ots.platform.enhance.api;

import com.alibaba.citrus.ots.platform.enhance.dto.api.request.QuerySaleScopeRequest;
import com.alibaba.citrus.ots.platform.enhance.sdo.CustomerSaleScopeSDO;
import com.alibaba.cz.base.tool.page.PageResult;
import com.alibaba.cz.base.tool.result.Result;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;

import java.util.List;
@MeshFlowService(apps = {"bc_ots"}, name = "customerSaleScopeQueryService")
public interface CustomerSaleScopeQueryService {
    /**
     * 根据地址编码查询销售负责人
     *
     * @param customerSaleScopeSDO
     * @return
     */
    Result<List<CustomerSaleScopeSDO>> querySaleScopeList(CustomerSaleScopeSDO customerSaleScopeSDO);


    /**
     * 分页查询客户销售范围
     *
     * @param request
     * @return
     */
    Result<PageResult<List<CustomerSaleScopeSDO>>> pageQuerySaleScope(QuerySaleScopeRequest request);

}
